package com.codedancer.campus.client.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.codedancer.campus.client.service.bo.dynamic.DynamicCommentAddBo;
import com.codedancer.campus.client.service.bo.dynamic.DynamicCommentPageSearchBo;
import com.codedancer.campus.client.service.vo.dynamic.DynamicCommentPageVo;

public interface IDynamicCommentService {

    /**
     * 新增评论
     * @param dynamicCommentAddBo
     */
    void add(DynamicCommentAddBo dynamicCommentAddBo);

    /**
     * 分页查询动态父级评论
     * @param dynamicCommentPageSearchBo
     * @return
     */
    IPage<DynamicCommentPageVo> pageParentComment(DynamicCommentPageSearchBo dynamicCommentPageSearchBo);

    /**
     * 动态回复
     * @param dynamicCommentAddBo
     */
    void reply(DynamicCommentAddBo dynamicCommentAddBo);

    /**
     * 分页查询该评论下子集评论
     * @param dynamicCommentPageSearchBo
     * @return
     */
    IPage<DynamicCommentPageVo> pageChildrenComment(DynamicCommentPageSearchBo dynamicCommentPageSearchBo);
}
